﻿@model Seven.DataModel.ViewModels.StaffAbout.StaffModel

<script src="~/Scripts/views/Staff/StaffForm.js" type="text/javascript"></script>

<form id="Staff-Form" name="Staff-Form">
    <div class="div_center">
        <fieldset>
            <legend class="panel-title">员工信息</legend>
            @Html.HiddenFor(m => m.ID)
            <table class="TableBlock">
                <tr>
                    <td class="TableLabel">
                        姓名：
                    </td>
                    <td class="TableData">
                        @Html.TextBoxFor(model => model.RealName)
                    </td>
                </tr>
                <tr>
                    <td class="TableLabel">
                        性别：
                    </td>
                    <td class="TableData">
                        @Html.TextBoxFor(model => model.Sex)
                    </td>
                </tr>
                <tr>
                    <td class="TableLabel">
                        公司：
                    </td>
                    <td class="TableData">
                        @Html.HiddenFor(model => model.CompanyID)
                        <label style="vertical-align:middle;">@Model.CompanyName</label>&nbsp;<a id="select_company" href="javascript:void(0);" class="easyui-linkbutton easyui-tooltip" data-options="iconCls:'icon-edit',plain:true,content:'选择公司'"></a>
                    </td>
                    <td class="TableLabel">
                        部门：
                    </td>
                    <td class="TableData">
                        @Html.HiddenFor(model => model.DeptID)
                        <label style="vertical-align:middle;">@Model.DeptName</label>&nbsp;<a id="select_dept" href="javascript:void(0);" class="easyui-linkbutton easyui-tooltip" data-options="iconCls:'icon-edit',plain:true,content:'选择部门'"></a>
                    </td>
                </tr>
                <tr>
                    <td class="TableLabel">
                        备注：
                    </td>
                    <td class="TableData" colspan="3">
                        @Html.TextAreaFor(model => model.Remark, new { style = "width:95%;" })
                    </td>
                </tr>
            </table>
        </fieldset>
    </div>
</form>

<script>
    $(function () {
        window.views.Staff.StaffForm.initPage("Staff-Form");
    });
</script>